package com.key.mapper;

import com.key.entity.AssetType;

import java.util.List;
import java.util.Map;

public interface AssetTypeMapper {
    //根据资产标号查询资产分类
    AssetType findAssetTypeByAssetTypeNum(Integer assetTypeNum);
    //查询所有资产分类
    List<AssetType> findAllAssetType();
    //添加资产分类
    int insertAssetType(AssetType assetType);
    //根据资产id查询资产分类
    AssetType findAssetTypeById(Integer id);
    //修改资产信息
    int updateAssetType(AssetType assetType);
    //删除资产分类
    int deleteAssetTypes(List<Integer> assetTypeIds);
    //禁用资产分类
    int updateAssetTypeStateById(Integer id);
    //解禁资产分类
    int changeAssetTypeStateById(Integer id);

    int insertAssetTypeBusiness(Map map);
}
